/*
 * @Author: EvanXU evanxu8023@163.com
 * @Date: 2023-08-29 09:11:24
 * @LastEditors: EvanXU evanxu8023@163.com
 * @LastEditTime: 2024-08-09 17:27:30
 * @FilePath: \program\USER\user_key.h
 * @Description: 
 *  xxx 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
#ifndef _user_key_h_
#define _user_key_h_

/* 包含头文件 ----------------------------------------------------------------*/
#include "define.h"
#include "led.h"
#include "key.h"
#include "multi_button.h"
#include "multi_timer.h"
#include "user_display.h"
#include "drv_timer.h"

/* 功能按键句柄 */
extern struct Button btn_de;

/* 宏定义 ----------------------------------------------------------------*/
#define KEY_DOWN_VAL	0
#define KEY_UP_VAL		1
#define KEY_BEEP_ON_TIME    50


#define BTN_ADD_PRESS_VAL		(READ_KEY_ADD == 0)
#define BTN_CUT_PRESS_VAL		(READ_KEY_CUT == 0)
#define BTN_SET_PRESS_VAL		(READ_KEY_SET == 0)
#define BTN_ENTER_PRESS_VAL		(READ_KEY_ENTER == 0)
#define BTN_SEN_A_PRESS_VAL		(READ_KEY_SENSOR_A == 0)
#define BTN_SEN_B_PRESS_VAL		(READ_KEY_SENSOR_B == 0)



/* 函数声明 ------------------------------------------------------------------*/
void creat_user_button_task(void);


#endif


